﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="BodyContent" ClientIDMode="Static">
    <div class="contentfull">
        <div class="breadcrumbs">
            <ul id="crumbs">
                <li><a title="SSICA" href="http://drssica.com/Home/">Home</a>
                    <img src="Content/Images/separator.png" alt="&rarr;" class="separator">
                    Sign In 			</li>
            </ul>
        </div>

        <div id="showMessages">
            <%= this.GetMessage() %>
        </div>

        <div class="content center no-mrg">

            <div class="start-box signin">
                <h1 class="center">Administrator</h1>
                <fieldset class="start-bg">
                    <legend></legend>
                    <form method="post" id="loginForm" runat="server">
                        <input type="hidden" name="action" value="login" />

                        <div class="prepend-box">
                            <span class="add-on">
                                <img src="Images/email32.png" alt=""></span>
                            <label for="username" class="prepend-label">Email Address</label>
                            <asp:TextBox ID="username" name="username" class="glow prepend" runat="server" ></asp:TextBox>
                        </div>
                        <div class="prepend-box">
                            <span class="add-on">
                                <img src="Images/password32.png" alt=""></span>
                            <label for="password" class="prepend-label">Password</label>
                            <asp:TextBox ID="password" name="password" TextMode="Password" class="glow prepend" runat="server"   />
                        </div>
                        <asp:Button ID="btnSubmit" runat="server" Text="Sign In" onclick="btnSubmit_Click" class="sign-in-button" />
                    </form>
                    <script type="text/javascript">
                        $(document).ready(function () {
                            $("#loginForm").submit(function (event) {
                                if (!$("input[id=username]").val() && !$("input[id=password]").val()) {
                                    alert('Please enter your email address and password.');
                                    return false;
                                } else if (!$("input[id=username]").val()) {
                                    alert('Please enter your email address.');
                                    return false;
                                } else if (!$("input[id=password]").val()) {
                                    alert('Please enter your password.');
                                    return false;
                                } else {
                                    return true;
                                }
                            });
                        });

                        // Load the inline label JS and call its function only if the browser supports CSS opacity.
                        Modernizr.load({
                            test: Modernizr.opacity,
                            yep: 'Scripts/jquery.inline-labels.js',
                            callback: function (url, result, key) {
                                $('label.prepend-label').inlineLabel();
                            }
                        });
                    </script>
                </fieldset>
                <div style="position:relative; float:left;margin-top:-270px;margin-left:102%">
                <img src="Images/30daytrial.png"/>
            </div>
            </div>
            
            <ul id="sign-in-links">
                <li><a href="ForgotPassword.aspx">Forgot your password?</a></li>
                <li><a href="ResendActivationMail.aspx">Lost your activation email?</a></li>
            </ul>
            <a href="Register.aspx" class="silver_button register">Create an Account</a>  <br />
            <center><img src="Images/tryus.jpg" alt="Try Us Free" />          </center>
        </div>
    </div>
</asp:Content>
